package com.kongyz.demo1;

import com.kongyz.demo1.shape.Shape;

/**
 * @author kongyz
 * @date 2018/6/28 22:40
 * @Description:
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }
    private void setRedBorder(Shape decoratedShape){
        System.out.println("红色边框");
    }
}
